public class CleanupException extends OperationFailureException
operation results.
The main reasons are:
invalidSubscriptionCode error occurs when the given code
is null or does not correspond to a subscription in the
database.
invalidResultType occurs when the result type is
unknown.
invalidToDate error occurs when the given date is
null.
incompatibleCurrencies occurs when aggregating the total
amounts of different currencies.
Note
Consult the field summary and the field details for the complete list of reasons and detailed information.
AsyncStatefulServiceClient,
StatefulServiceClient,
Serialized FormThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="cleanupFault">
<xs:complexType>
<xs:attribute name="reason" type="CleanupFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="CleanupFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidSubscriberAccountCode"/>
<xs:enumeration value="invalidServiceProvider"/>
<xs:enumeration value="invalidSubscriptionOid"/>
<xs:enumeration value="invalidToDate"/>
<xs:enumeration value="invalidResultType"/>
<xs:enumeration value="incompatibleCurrencies"/>
<xs:enumeration value="cleanupProcessAlreadyRunning"/>
<xs:enumeration value="dispatcherCommunicationFailed"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLEANUP_PROCESS_ALREADY_RUNNING
6: Constant for
cleanupProcesssAlreadyRunning error. |
static int |
DISPATCHER_COMMUNICATION_FAILED
7: Constant for
dispatcherCommunicationFailed error |
static int |
INCOMPATIBLE_CURRENCIES
5: Constant for
incompatibleCurrencies error |
static int |
INVALID_RESULT_TYPE
4: Constant for
invalidResultType error |
static int |
INVALID_SERVICE_PROVIDER
1: Constant for
invalidServiceProvider error |
static int |
INVALID_SUBSCRIBER_ACCOUNT_CODE
0: Constant for
invalidSubscriberAccountCode error |
static int |
INVALID_SUBSCRIPTION_OID
2: Constant for
invalidSubscriptionOid error |
static int |
INVALID_TO_DATE
3: Constant for
invalidToDate error |
static String |
OPERATION_NAME
The XML name: "cleanupFault"
|
static int |
UNKNOWN
-1: Constant for
unknown error |
| Constructor and Description |
|---|
CleanupException()
Constructs an empty exception.
|
CleanupException(int reason,
String message)
Creates a new
CleanupException with a reason and a message. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getMessage()
Gets the recorded detailed message for this
CleanupException. |
int |
getReason()
Gets the recorded reason of this
CleanupException for further investigations. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setMessage(String message)
SAP CC sets up the message for this
CleanupException. |
void |
setReason(int reason)
SAP CC sets up the reason of this
CleanupException. |
String |
toString() |
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic static final String OPERATION_NAME
public static final int INVALID_SUBSCRIBER_ACCOUNT_CODE
invalidSubscriberAccountCode errorpublic static final int INVALID_SERVICE_PROVIDER
invalidServiceProvider errorpublic static final int INVALID_SUBSCRIPTION_OID
invalidSubscriptionOid errorpublic static final int INVALID_TO_DATE
invalidToDate errorpublic static final int INVALID_RESULT_TYPE
invalidResultType errorpublic static final int INCOMPATIBLE_CURRENCIES
incompatibleCurrencies errorpublic static final int CLEANUP_PROCESS_ALREADY_RUNNING
cleanupProcesssAlreadyRunning error. A
cleanup process is still running.public static final int DISPATCHER_COMMUNICATION_FAILED
dispatcherCommunicationFailed errorpublic static final int UNKNOWN
unknown errorpublic CleanupException()
public CleanupException(int reason,
String message)
CleanupException with a reason and a message.reason - The reasonmessage - The additional messageINVALID_SUBSCRIBER_ACCOUNT_CODE,
INVALID_SERVICE_PROVIDER,
INVALID_SUBSCRIPTION_OID,
INVALID_TO_DATE,
INVALID_RESULT_TYPE,
INCOMPATIBLE_CURRENCIES,
CLEANUP_PROCESS_ALREADY_RUNNING,
UNKNOWNpublic void setReason(int reason)
CleanupException.reason - The reason of this CleanupExceptionpublic int getReason()
CleanupException for further investigations.CleanupExceptiongetMessage(),
INVALID_SUBSCRIBER_ACCOUNT_CODE,
INVALID_TO_DATE,
INVALID_RESULT_TYPE,
INCOMPATIBLE_CURRENCIES,
CLEANUP_PROCESS_ALREADY_RUNNING,
DISPATCHER_COMMUNICATION_FAILED,
UNKNOWNpublic void setMessage(String message)
CleanupException.message - The message for this CleanupExceptionpublic String getMessage()
CleanupException.getMessage in class ThrowableCleanupExceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into